#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int prime(int n)
{
	if (n <= 1)return 0;
	if (n <= 3)return 1;
	if (n % 2 == 0 || n % 3 == 0)return 0;
	for (int i = 5; i * i <= n; i += 6)
	{
		if (n % i == 0 || n % (i + 2) == 0)
			return 0;
	}
	return 1;
}
int main()
{
	int n = 0;
	scanf("%d", &n);
	printf("4=2+2\n");
	if (n == 4)return 0;
	for (int i = 6; i <= n; i += 2)
	{
		for (int j = 3; j <= (n / 2); j += 2)
		{
			if (prime(j) && prime(i - j))
			{
				printf("%d=%d+%d\n", i, j, i - j);
				break;
			}
		}
	}
	return 0;
}